echo -e  "Start Sync DPX\n====================\n"
outputPath=/cygdrive/p/public/data/dpx
cd //cygdrive/z/data/WindDB/setting/universe
for file in $(find . -maxdepth 1 -name "????????_universe.csv")
do
if [ -f ${outputPath}/${file%_universe.csv}.dpx.csv ];
	then
	   #echo "File ${outputPath}/${file%_universe.csv}.dpx.csv exists, skip"
	   continue
	else
	   cut -d',' -f1,2,5,10,52,53,54,4,55,51,56,57,58,59 $file > ${outputPath}/${file%_universe.csv}.dpx.csv;
	   echo -e  "File ${outputPath}/${file%_universe.csv}.dpx.csv been created"
	fi
done
echo -e "Finished sync DPX for LZY\n"

echo -e "Start Sync 000300Wt\n====================\n"
outputPath=/cygdrive/p/public/data/index/000300/000300_wt
cd /cygdrive/z/data/WindTerminal/index/000300/000300_wt
for file in $(find . -maxdepth 1 -name "????????.000300_wt.csv")
do
	if [ -f "${outputPath}/${file}" ];
	then
	   #echo "File ${outputPath}/${file%_universe.csv}.dpx.csv exists, skip"
	   continue
	else
	   cp $file ${outputPath}/${file};
	   echo -e "File ${outputPath}/${file} been created"
	fi
done
echo -e "Finished sync 000300Wt for LZY\n"

echo -e "Start Sync 000905Wt\n====================\n"
outputPath=/cygdrive/p/public/data/index/000905/000905_wt
cd /cygdrive/z/data/WindTerminal/index/000905/000905_wt
for file in $(find . -maxdepth 1 -name "????????.000905_wt.csv")
do
	if [ -f "${outputPath}/${file}" ];
	then
	   #echo "File ${outputPath}/${file%_universe.csv}.dpx.csv exists, skip"
	   continue
	else
	   cp $file ${outputPath}/${file};
	   echo "File ${outputPath}/${file} been created"
	fi
done
echo "Finished sync 000905Wt for LZY\n"

echo -e "Start Sync cacs\n====================\n"
outputPath=/cygdrive/p/public/data/cacs
cd /cygdrive/z/data/WindDB/cacs
for file in $(find . -maxdepth 1 -name "????????.cacs.csv")
do
	if [ -f "${outputPath}/${file#*/}" ];
	then
	   continue
	else
	   cp $file ${outputPath}/${file#*/};
	   echo "File ${outputPath}/${file} been created"
	fi
done
echo "Finished sync cacs for LZY"

echo -e "Start Sync shares\n====================\n"
outputPath=/cygdrive/p/public/data/shares
cd /cygdrive/z/data/WindDB/shares
for file in $(find . -maxdepth 1 -name "????????.shares.csv")
do
	if [ -f "${outputPath}/${file}" ];
	then
	   continue
	else
	   cp $file ${outputPath}/${file};
	   echo "File ${outputPath}/${file} been created"
	fi
done
echo "Finished sync shares for LZY"

echo -e "Start Sync DPX\n====================\n"
outputPath=/cygdrive/p/public/data/raw_dpx
cd /cygdrive/z/data/WindDB/dpx
for file in $(find . -maxdepth 1 -name "????????.dpx.csv")
do
	if [ -f "${outputPath}/${file}" ];
	then
	   continue
	else
	   cp $file ${outputPath}/${file};
	   echo "File ${outputPath}/${file} been created"
	fi
done
echo "Finished sync dpx for LZY"
